package com.open.capacity.recuritment.controller;

import com.open.capacity.common.model.SysUser;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.recuritment.service.IUnemployedService;
import io.swagger.annotations.ApiOperation;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/recruitment")
public class UnemployedController {

    @Resource
    private IUnemployedService recruitmentService;


//    @ApiOperation(value = "待业人员列表查询")
    @GetMapping("/findUnemployed")
    public PageResult<SysUser> findUnemployed(Integer page,Integer limit) {
        Map<String,Object> map=new HashMap<>();
        map.put("page",page);
        map.put("limit",limit);
        PageResult<SysUser> unemployed = recruitmentService .findUnemployed(map);
        return unemployed;
    }

}
